package com.yxh.lib_base.base.viewmodel

/**
 * 作者 : yuan_xh
 * 时间 : 2022/8/17 11:03
 * 说明 :
 */


/** ~~~~~~~~~~~~~~~~~~~~~~~~~  Loading 篇  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
fun BaseViewModel.showLoading(message: String) {
    loadingChange.showDialog.postValue(message)
}

fun BaseViewModel.dismissLoading() {
    loadingChange.dismissDialog.postValue(true)
}